﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace XWord.Common
{
    [Serializable]
    public class Dict : Hashtable
    {
        private string currentMainKey;

        public Hashtable MyProperty { get; set; }

        public Dict():base()
        {

        }
        public void SetCurrentKey(string key)
        {
            currentMainKey = key;
            this[currentMainKey] = new Hashtable();
        }

        public void Add(string key, string val)
        {
            var ht = this[currentMainKey] as Hashtable;
            ht[key] = val;
        }
    }
}
